In statistics, a gamma test tests the strength of association of the cross tabulated data when both variables are measured at the ordinal level. It makes no adjustment for either table size or ties. Values range from −1 (100% negative association, or perfect inversion) to +1 (100% positive association, or perfect agreement). A value of zero indicates the absence of association.
This test statistic is also known as Goodman and Kruskal's gamma (which is distinct from Goodman and Kruskal's lambda), after Leo Goodman and William Kruskal who proposed it in a series of papers from 1954 to 1972.[1][2][3][4]
Contents |
The value of a gamma test statistic, G, depends on two quantities:
where "ties" are dropped. That is cases where either of the two variables in the pair are equal. Then
The test statistic can be regarded as the maximum likelihood estimator for the theoretical quantity , where
and where Ps and Pd are the probabilities that a randomly selected pair of observations will place in the same or opposite order respectively, when ranked by both variables.
Critical values for the gamma tests statistic are sometimes found by using an approximation, whereby a transformed value, t of the test statistic is referred to Student t distribution, where
and where n is the number of observations (not the number of pairs):
Sheskin, D.J. (2007) The Handbook of Parametric and Nonparametric Statistical Procedures. Chapman & Hall/CRC, ISBN 9781584888147 http://www.psych.cornell.edu/Darlington/crosstab/TABLE5.HTM